package com.d0303;

public class Student {
    String name;
    int grade;
    int age;
    String addr;
    public void changeAddr(String a){
        addr =a;
    }
    public void changeName(String b){
        name =b;
    }
    public void changeAge(int c){
        age =c;
    }
    public void changeGrade(int d){
        grade =d;
    }

    public void show(){
        System.out.println(name);
        System.out.println(grade);
        System.out.println(age);
        System.out.println(addr);
    }
    public static void main(String[] args) {
        Student student = new Student();
        student.changeName("张杰");
        student.changeAge (22);
        student.changeGrade(100);
        student.changeAddr("辽宁");
        student.show();
    }
}
